package com.example.housingRentalSystem.mapper;

import com.example.housingRentalSystem.bean.News;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 王硕
 * @version jdk21
 * @className NewsMapper
 * @description 新闻Mapper接口
 * @date 2025/3/24 15:50
 */
@Mapper
public interface NewsMapper {

    int insert(News news);
    int updateById(News news);
    int deleteById(@Param("id") Integer id);
    News selectById(@Param("id") Integer id);
    Page<News> selectPage();
    int selectCountNews();
}